package com.zhouxiaoge.quartz.jobs;

import com.zhouxiaoge.quartz.service.BaseJob;
import org.quartz.JobExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component("newJob")
public class NewJob implements BaseJob {

    private static Logger log = LoggerFactory.getLogger(NewJob.class);

    public NewJob() {

    }

    @Override
    public void execute(JobExecutionContext context) {
        log.info("newJob Job执行时间: " + new Date());
    }
}
